﻿using Abp.Application.Services.Dto;
using FwProject.Comm.ExcelUtil;
using FwProject.Core.Restaurant;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace FwProject.Distribution.Dto
{
    [DisplayName("未制作收据餐厅")]
    public class GenerateReceiptOutputDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 餐厅名称
        /// </summary>
        [DisplayName(displayName:"餐厅名称")]
        [ExcelDateMember]
        public string RestaurantName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [DisplayName(displayName: "负责人")]
        [ExcelDateMember]
        public string Principal { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [DisplayName(displayName: "联系电话")]
        [ExcelDateMember]
        public string Mobile { get; set; }

        /// <summary>
        /// 收款周期
        /// </summary>
        [DisplayName(displayName: "收款周期")]
        [ExcelDateMember]
        public BalanceCycleEnum BalanceCycle { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [DisplayName(displayName: "金额")]
        [ExcelDateMember]
        public decimal Amount { get; set; } = 0m;
    }

    public class MakingReceiptOutputDto:EntityDto<Guid>
    {
        /// <summary>
        /// 结账单号
        /// </summary>
        public string CreationNumber { get; set; }


        /// <summary>
        /// 餐厅Id
        /// </summary>
        public Guid? RestaurantId { get; set; }

        /// <summary>
        /// 餐厅名称
        /// </summary>
        public string RestaurantName { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 型号
        /// </summary>
        public List<SuitDto> Suits { get; set; }

        /// <summary>
        /// 合计
        /// </summary>
        public decimal Sum { get; set; }

        /// <summary>
        /// 合计（大写）
        /// </summary>
        public string Capital { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string RemarksConten { get; set; }


        public int IsZeroCount { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal DiscountedPrice { get; set; }

        /// <summary>
        ///  配送时间
        /// </summary>
        public string DeliveryDate { get; set; }
    }

    public class SuitDto
    {

        public Guid DistrtionDetailsId { get; set; }
        public Guid TypeNumberId { get; set; }
        /// <summary>
        /// 型号名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 箱数
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 套数
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 合计
        /// </summary>
        public decimal Total { get; set; }

       

    }
}
